export namespace="neuvector-system"
export app_name="neuvector"
export repo="neuvector"
export helm="$repo/core"
export url="https://neuvector.github.io/neuvector-helm/"

# helm repo remove $repo
helm repo add $repo $url
helm repo update $repo

# kubectl create namespace $namespace
# kubectl label namespace $namespace "pod-security.kubernetes.io/enforce=privileged"
# kubectl create secret docker-registry regsecret -n $namespace --docker-server="https://index.docker.io/v1/" --docker-username="softyouling" --docker-password="youling790313" --docker-email="16866120@qq.com"

helm upgrade --create-namespace --install \
    -n $namespace $app_name $helm \
    -f values.yaml

# kubectl create serviceaccount neuvector -n neuvector

# kubectl apply -f ./neuvector/ingress-neuvector.yaml


# 初始用户名 admin 密码 admin